<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .abc {
            width: 100px;
            height: 100px;
            position: absolute;
            background: red;
            transition: all 0.3s;
            transform: translateX(2)
        }
    </style>
</head>

<body>
    <div title="1111">123</div>
    <div class="abc">1111</div>
    <img src="./src//assets/logo.png" alt="123" title="1111">
    <script>
        const div = document.querySelector('.abc')
        const a = () => {
        }
    </script>
</body>

</html>